package com.simblog.common.constants;

import java.util.HashMap;
import java.util.Map;

public class Constants {
	
	//系统标准返回码
	/*请求处理成功*/
	public final static String RESP_SUCCESS = "1";
	/*请求处理失败*/
	public final static String RESP_FAIL = "0";
	/*系统异常*/
	public final static String RESP_EXCEPTION = "-1";
	
	//客户端的参数返回码
	/*客户端必传参数不足*/
	public static final String CLIENT_REQUIRED_PARAMETER_ERROR = "P0001";
	/* 客户端时间异常*/
	public static final String CLIENT_TIMESTAMP_ERROR = "P0002";
	/*参数为空*/
	public static final String PARAMETER_NULL_ERROR = "P0003";
	/*参数格式错误*/
	public static final String PARAMETER_FORMATE_ERROR= "P0004";
	
	
	//客户端token返回码
	/*客户端token没传*/
	public static final String TOKEN_NULL_ERROR = "T0001";
	/*客户端token过期*/
	public static final String TOKEN_EXPIRED_ERROR = "T0002";
	/*token无效*/
	public static final String INVALID_TOKEN_ERROR = "T0003";
	
	/*签名为空*/
	public static final String SIGN_NULL_ERROR = "S0001";
	/*签名验证错误*/
	public static final String SIGN_VALIDATE_ERROR = "S0002";
	
	
	public static final Map<String, String> CLIENT_PARAMETER = new HashMap<String, String>(){{
		put("client_type","client_type");
		put("client_version","client_version");
		put("imei", "imei");
		put("os_version","os_version");
		put("timestamp","timestamp");
		put("sign","sign");
	}};
}
